package testaux;

public class Statement {
    public final int type;
    public final Object st;

    public Statement(int type, Object st) {
        this.type = type;
        this.st = st;
    }

    public String toString() {
        switch (type) {
            case Sym.ASSIGN:
            case Sym.BLOCK:
            case Sym.IF:
            case Sym.RET:
                return st.toString();
            case Sym.PASS:
                return "PASS";
            default:
                return "ERROR";
        }
    }
}
